
export class Column{
    name: string;
    type: string;
    defaultValue: string;
    primary: boolean;
    unique: boolean;
    notnull: boolean;
    comment: string;
    constructor(name, type, defaultValue, primary, unique, notnull, comment){
        this.name = name;
        this.type = type;
        this.defaultValue = defaultValue;
        this.primary = primary;
        this.unique = unique;
        this.notnull = notnull;
        this.comment = comment;
    }

    
}

export class Table{
    name: string;
    comment: string;
    columns: Column[];
    constructor(name, comment, columns?){
        this.name = name;
        this.comment = comment;
        this.columns = columns;
    }

    setColumns(columns){
        this.columns = columns;
    }

}